load ..\dataforproject.mat

% generate train data
tr_data = gen_data(X1train, X2train, 'hellinger');
tr_label = ytrain;

% genereate test data
te_data = gen_data(X1test, X2test, 'hellinger');
te_label = ones(size(te_data,1),1);

% normalize the data to [-1,1]. Test is normalized according to
% train data.
[tr_data, norm_params] = norm_data(tr_data);
[te_data, ~] = norm_data(te_data, norm_params);

% run svm
[~,ytest] = run_svm(tr_data, tr_label, te_data, te_label, 1, 1);
save ytest.mat ytest